import axios from "@/axios/axios";


/**
 * 获取商品列表
 * @returns 
 */
export const goods_goods=(obj)=>axios.get('goods',{params:obj})

/**
 * 
 * @param {*} id 
 * @returns 
 */
export const goods_delete=(id)=>axios.delete(`goods/${id}`)

/**
 * 查询
 * @param {*} id 
 * @returns 
 */
export const goods_get=(id)=>axios.get(`goods/${id}`)


/**
 * 
 * @param {*} id 
 * @param {*} obj 
 * @returns 
 */
export const goods_put=(id,obj)=>axios.put(`goods/${id}`,obj)



/**
 * 
 * @param {*} obj 
 * @returns 
 */
export const goods_post=(obj)=>axios.post('goods',obj)